home *** CD-ROM | disk | FTP | other *** search
/ SGI Freeware 1999 August / SGI Freeware 1999 August.iso / dist / fw_xemacs.idb / usr / freeware / lib / xemacs-20.4 / lisp / utils / passwd.elc.z / passwd.elc
Emacs Compiled Lisp  |  1998-05-21  |  8.3 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was processed as: Emacs Compiled Lisp (other/emacsCompiledLisp).
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
1% dexvert Emacs Compiled Lisp (other/emacsCompiledLisp) magic Unsupported
100% file Emacs/XEmacs v20 byte-compiled Lisp data default
99% file data default
55% TrID Emacs/XEmacs byte-compiled Lisp (generic) default
44% TrID Summation Document Image Information Load File default (weak)



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 3b 45 4c 43 14 00 00 00 | 0a 3b 3b 3b 20 63 6f 6d |;ELC....|.;;; com|
|00000010| 70 69 6c 65 64 20 62 79 | 20 6a 75 73 74 69 6e 62 |piled by| justinb|
|00000020| 40 65 62 6f 6e 79 2e 63 | 72 61 79 2e 63 6f 6d 20 |@ebony.c|ray.com |
|00000030| 6f 6e 20 4d 6f 6e 20 4d | 61 72 20 20 39 20 31 32 |on Mon M|ar 9 12|
|00000040| 3a 35 36 3a 30 32 20 31 | 39 39 38 0a 3b 3b 3b 20 |:56:02 1|998.;;; |
|00000050| 66 72 6f 6d 20 66 69 6c | 65 20 2f 68 6f 6d 65 2f |from fil|e /home/|
|00000060| 61 73 70 65 6e 30 37 2f | 6a 75 73 74 69 6e 62 2f |aspen07/|justinb/|
|00000070| 72 6f 6f 74 73 2f 66 72 | 65 65 77 61 72 65 2f 78 |roots/fr|eeware/x|
|00000080| 65 6d 61 63 73 2f 32 30 | 2e 33 2f 78 65 6d 61 63 |emacs/20|.3/xemac|
|00000090| 73 2d 32 30 2e 33 2f 6c | 69 73 70 2f 75 74 69 6c |s-20.3/l|isp/util|
|000000a0| 73 2f 70 61 73 73 77 64 | 2e 65 6c 0a 3b 3b 3b 20 |s/passwd|.el.;;; |
|000000b0| 65 6d 61 63 73 20 76 65 | 72 73 69 6f 6e 20 32 30 |emacs ve|rsion 20|
|000000c0| 2e 34 20 22 45 6d 65 72 | 61 6c 64 22 20 58 45 6d |.4 "Emer|ald" XEm|
|000000d0| 61 63 73 20 20 4c 75 63 | 69 64 2e 0a 3b 3b 3b 20 |acs Luc|id..;;; |
|000000e0| 62 79 74 65 63 6f 6d 70 | 20 76 65 72 73 69 6f 6e |bytecomp| version|
|000000f0| 20 32 2e 32 35 20 58 45 | 6d 61 63 73 3b 20 32 32 | 2.25 XE|macs; 22|
|00000100| 2d 4d 61 72 2d 39 36 2e | 0a 3b 3b 3b 20 6f 70 74 |-Mar-96.|.;;; opt|
|00000110| 69 6d 69 7a 61 74 69 6f | 6e 20 69 73 20 6f 6e 2e |imizatio|n is on.|
|00000120| 0a 3b 3b 3b 20 74 68 69 | 73 20 66 69 6c 65 20 75 |.;;; thi|s file u|
|00000130| 73 65 73 20 6f 70 63 6f | 64 65 73 20 77 68 69 63 |ses opco|des whic|
|00000140| 68 20 64 6f 20 6e 6f 74 | 20 65 78 69 73 74 20 69 |h do not| exist i|
|00000150| 6e 20 45 6d 61 63 73 20 | 31 39 2e 0a 0a 28 69 66 |n Emacs |19...(if|
|00000160| 20 28 61 6e 64 20 28 62 | 6f 75 6e 64 70 20 27 65 | (and (b|oundp 'e|
|00000170| 6d 61 63 73 2d 76 65 72 | 73 69 6f 6e 29 0a 09 20 |macs-ver|sion).. |
|00000180| 28 6f 72 20 28 61 6e 64 | 20 28 62 6f 75 6e 64 70 |(or (and| (boundp|
|00000190| 20 27 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e | 'epoch:|:version|
|000001a0| 29 20 65 70 6f 63 68 3a | 3a 76 65 72 73 69 6f 6e |) epoch:|:version|
|000001b0| 29 0a 09 20 20 20 20 20 | 28 73 74 72 69 6e 67 2d |).. |(string-|
|000001c0| 6c 65 73 73 70 20 65 6d | 61 63 73 2d 76 65 72 73 |lessp em|acs-vers|
|000001d0| 69 6f 6e 20 22 32 30 22 | 29 29 29 0a 20 20 20 20 |ion "20"|))). |
|000001e0| 28 65 72 72 6f 72 20 22 | 60 70 61 73 73 77 64 2e |(error "|`passwd.|
|000001f0| 65 6c 27 20 77 61 73 20 | 63 6f 6d 70 69 6c 65 64 |el' was |compiled|
|00000200| 20 66 6f 72 20 45 6d 61 | 63 73 20 32 30 22 29 29 | for Ema|cs 20"))|
|00000210| 0a 0a 28 6f 72 20 28 62 | 6f 75 6e 64 70 20 27 63 |..(or (b|oundp 'c|
|00000220| 75 72 72 65 6e 74 2d 6c | 6f 61 64 2d 6c 69 73 74 |urrent-l|oad-list|
|00000230| 29 20 28 73 65 74 71 20 | 63 75 72 72 65 6e 74 2d |) (setq |current-|
|00000240| 6c 6f 61 64 2d 6c 69 73 | 74 20 6e 69 6c 29 29 0a |load-lis|t nil)).|
|00000250| 0a 0a 28 63 75 73 74 6f | 6d 2d 64 65 63 6c 61 72 |..(custo|m-declar|
|00000260| 65 2d 67 72 6f 75 70 20 | 27 70 61 73 73 77 64 20 |e-group |'passwd |
|00000270| 6e 69 6c 20 22 50 72 6f | 6d 70 74 69 6e 67 20 66 |nil "Pro|mpting f|
|00000280| 6f 72 20 70 61 73 73 77 | 6f 72 64 73 20 73 65 6d |or passw|ords sem|
|00000290| 69 2d 73 65 63 75 72 65 | 6c 79 22 20 3a 67 72 6f |i-secure|ly" :gro|
|000002a0| 75 70 20 27 70 72 6f 63 | 65 73 73 65 73 29 0a 28 |up 'proc|esses).(|
|000002b0| 63 75 73 74 6f 6d 2d 64 | 65 63 6c 61 72 65 2d 76 |custom-d|eclare-v|
|000002c0| 61 72 69 61 62 6c 65 20 | 27 70 61 73 73 77 64 2d |ariable |'passwd-|
|000002d0| 69 6e 76 65 72 74 2d 66 | 72 61 6d 65 2d 77 68 65 |invert-f|rame-whe|
|000002e0| 6e 2d 6b 65 79 62 6f 61 | 72 64 2d 67 72 61 62 62 |n-keyboa|rd-grabb|
|000002f0| 65 64 20 27 28 6e 6f 74 | 20 28 66 65 61 74 75 72 |ed '(not| (featur|
|00000300| 65 70 20 27 69 6e 66 6f | 64 6f 63 6b 29 29 20 22 |ep 'info|dock)) "|
|00000310| 2a 49 66 20 6e 6f 6e 2d | 6e 69 6c 20 73 77 61 70 |*If non-|nil swap|
|00000320| 20 74 68 65 20 66 6f 72 | 65 67 72 6f 75 6e 64 20 | the for|eground |
|00000330| 61 6e 64 20 62 61 63 6b | 67 72 6f 75 6e 64 20 63 |and back|ground c|
|00000340| 6f 6c 6f 72 73 20 6f 66 | 20 61 6c 6c 20 66 61 63 |olors of| all fac|
|00000350| 65 73 2e 5c 6e 54 68 69 | 73 20 69 73 20 64 6f 6e |es.\nThi|s is don|
|00000360| 65 20 77 68 69 6c 65 20 | 74 68 65 20 6b 65 79 62 |e while |the keyb|
|00000370| 6f 61 72 64 20 69 73 20 | 67 72 61 62 62 65 64 20 |oard is |grabbed |
|00000380| 69 6e 20 6f 72 64 65 72 | 20 74 6f 20 67 69 76 65 |in order| to give|
|00000390| 20 61 20 76 69 73 75 61 | 6c 5c 6e 63 6c 75 65 20 | a visua|l\nclue |
|000003a0| 74 68 61 74 20 61 20 67 | 72 61 62 20 69 73 20 69 |that a g|rab is i|
|000003b0| 6e 20 65 66 66 65 63 74 | 2e 22 20 3a 74 79 70 65 |n effect|." :type|
|000003c0| 20 27 62 6f 6f 6c 65 61 | 6e 20 3a 67 72 6f 75 70 | 'boolea|n :group|
|000003d0| 20 27 70 61 73 73 77 64 | 29 0a 28 63 75 73 74 6f | 'passwd|).(custo|
|000003e0| 6d 2d 64 65 63 6c 61 72 | 65 2d 76 61 72 69 61 62 |m-declar|e-variab|
|000003f0| 6c 65 20 27 70 61 73 73 | 77 64 2d 65 63 68 6f 20 |le 'pass|wd-echo |
|00000400| 27 3f 5c 2e 20 22 2a 54 | 68 65 20 63 68 61 72 61 |'?\. "*T|he chara|
|00000410| 63 74 65 72 20 77 68 69 | 63 68 20 73 68 6f 75 6c |cter whi|ch shoul|
|00000420| 64 20 62 65 20 65 63 68 | 6f 65 64 20 77 68 65 6e |d be ech|oed when|
|00000430| 20 74 79 70 69 6e 67 20 | 61 20 70 61 73 73 77 6f | typing |a passwo|
|00000440| 72 64 2c 5c 6e 6f 72 20 | 6e 69 6c 2c 20 6d 65 61 |rd,\nor |nil, mea|
|00000450| 6e 69 6e 67 20 65 63 68 | 6f 20 6e 6f 74 68 69 6e |ning ech|o nothin|
|00000460| 67 2e 22 20 3a 74 79 70 | 65 20 27 73 65 78 70 20 |g." :typ|e 'sexp |
|00000470| 3a 67 72 6f 75 70 20 27 | 70 61 73 73 77 64 29 0a |:group '|passwd).|
|00000480| 23 40 34 39 38 20 4b 65 | 79 6d 61 70 20 75 73 65 |#@498 Ke|ymap use|
|00000490| 64 20 66 6f 72 20 72 65 | 61 64 69 6e 67 20 70 61 |d for re|ading pa|
|000004a0| 73 73 77 6f 72 64 73 20 | 69 6e 20 74 68 65 20 6d |sswords |in the m|
|000004b0| 69 6e 69 62 75 66 66 65 | 72 2e 0a 54 68 65 20 22 |inibuffe|r..The "|
|000004c0| 62 69 6e 64 69 6e 67 73 | 22 20 69 6e 20 74 68 69 |bindings|" in thi|
|000004d0| 73 20 6d 61 70 20 61 72 | 65 20 6e 6f 74 20 72 65 |s map ar|e not re|
|000004e0| 61 6c 20 63 6f 6d 6d 61 | 6e 64 73 3b 20 6f 6e 6c |al comma|nds; onl|
|000004f0| 79 20 61 20 6c 69 6d 69 | 74 65 64 0a 6e 75 6d 62 |y a limi|ted.numb|
|00000500| 65 72 20 6f 66 20 63 6f | 6d 6d 61 6e 64 73 20 61 |er of co|mmands a|
|00000510| 72 65 20 75 6e 64 65 72 | 73 74 6f 6f 64 2e 20 20 |re under|stood. |
|00000520| 54 68 65 20 69 6d 70 6f | 72 74 61 6e 74 20 62 69 |The impo|rtant bi|
|00000530| 6e 64 69 6e 67 73 20 61 | 72 65 3a 0a 5c 3c 72 65 |ndings a|re:.\<re|
|00000540| 61 64 2d 70 61 73 73 77 | 64 2d 6d 61 70 3e 0a 09 |ad-passw|d-map>..|
|00000550| 5c 5b 70 61 73 73 77 64 | 2d 65 72 61 73 65 2d 62 |\[passwd|-erase-b|
|00000560| 75 66 66 65 72 5d 09 45 | 72 61 73 65 20 61 6c 6c |uffer].E|rase all|
|00000570| 20 69 6e 70 75 74 2e 0a | 09 5c 5b 71 75 6f 74 65 | input..|.\[quote|
|00000580| 64 2d 69 6e 73 65 72 74 | 5d 09 49 6e 73 65 72 74 |d-insert|].Insert|
|00000590| 20 74 68 65 20 6e 65 78 | 74 20 63 68 61 72 61 63 | the nex|t charac|
|000005a0| 74 65 72 20 6c 69 74 65 | 72 61 6c 6c 79 2e 0a 09 |ter lite|rally...|
|000005b0| 5c 5b 64 65 6c 65 74 65 | 2d 62 61 63 6b 77 61 72 |\[delete|-backwar|
|000005c0| 64 2d 63 68 61 72 5d 09 | 44 65 6c 65 74 65 20 74 |d-char].|Delete t|
|000005d0| 68 65 20 70 72 65 76 69 | 6f 75 73 20 63 68 61 72 |he previ|ous char|
|000005e0| 61 63 74 65 72 2e 0a 09 | 5c 5b 65 78 69 74 2d 6d |acter...|\[exit-m|
|000005f0| 69 6e 69 62 75 66 66 65 | 72 5d 09 41 63 63 65 70 |inibuffe|r].Accep|
|00000600| 74 20 77 68 61 74 20 79 | 6f 75 20 68 61 76 65 20 |t what y|ou have |
|00000610| 74 79 70 65 64 2e 0a 09 | 5c 5b 6b 65 79 62 6f 61 |typed...|\[keyboa|
|00000620| 72 64 2d 71 75 69 74 5d | 09 41 62 6f 72 74 20 74 |rd-quit]|.Abort t|
|00000630| 68 65 20 63 6f 6d 6d 61 | 6e 64 2e 0a 0a 41 6c 6c |he comma|nd...All|
|00000640| 20 6f 74 68 65 72 20 63 | 68 61 72 61 63 74 65 72 | other c|haracter|
|00000650| 73 20 69 6e 73 65 72 74 | 20 74 68 65 6d 73 65 6c |s insert| themsel|
|00000660| 76 65 73 20 28 62 75 74 | 20 64 6f 20 6e 6f 74 20 |ves (but| do not |
|00000670| 65 63 68 6f 2e 29 1f 0a | 28 64 65 66 76 61 72 20 |echo.)..|(defvar |
|00000680| 72 65 61 64 2d 70 61 73 | 73 77 64 2d 6d 61 70 20 |read-pas|swd-map |
|00000690| 28 62 79 74 65 2d 63 6f | 64 65 20 22 c0 c1 c2 c0 |(byte-co|de "....|
|000006a0| 5c 22 c3 1c 1d 1e 06 c7 | c8 21 ab 8b c9 20 14 c8 |\"......|.!... ..|
|000006b0| 0c 0e 5c 6e 5c 22 88 aa | 85 cb 0e 5c 6e 21 14 c7 |..\n\"..|...\n!..|
|000006c0| cc 21 ab 85 cc 0c cd 5c | 22 88 0e 06 ce 57 ab a2 |.!.....\|"....W..|
|000006d0| 0d c0 0e 06 49 88 cf d0 | 21 ab 89 d1 0e 06 21 0e |....I...|!.....!.|
|000006e0| 10 61 ac 86 d2 0c 0d d3 | 23 88 0e 06 54 89 16 06 |.a......|#...T...|
|000006f0| aa 5a d2 0c d4 d5 23 88 | d2 0c d6 d7 23 88 d2 0c |.Z....#.|....#...|
|00000700| d8 d9 23 88 d2 0c da d9 | 23 88 d2 0c db dc 23 88 |..#.....|#.....#.|
|00000710| d2 0c dd de 23 88 d2 0c | df d7 23 88 d2 0c e0 e1 |....#...|..#.....|
|00000720| 23 88 d2 0c e2 e3 23 88 | 0c 2b 87 22 20 5b 30 20 |#.....#.|.+." [0 |
|00000730| 6d 61 6b 65 2d 73 74 72 | 69 6e 67 20 31 20 6e 69 |make-str|ing 1 ni|
|00000740| 6c 20 6d 61 70 20 73 20 | 69 20 66 62 6f 75 6e 64 |l map s |i fbound|
|00000750| 70 20 73 65 74 2d 6b 65 | 79 6d 61 70 2d 70 61 72 |p set-ke|ymap-par|
|00000760| 65 6e 74 20 6d 61 6b 65 | 2d 6b 65 79 6d 61 70 20 |ent make|-keymap |
|00000770| 6d 69 6e 69 62 75 66 66 | 65 72 2d 6c 6f 63 61 6c |minibuff|er-local|
|00000780| 2d 6d 61 70 20 63 6f 70 | 79 2d 6b 65 79 6d 61 70 |-map cop|y-keymap|
|00000790| 20 73 65 74 2d 6b 65 79 | 6d 61 70 2d 6e 61 6d 65 | set-key|map-name|
|000007a0| 20 72 65 61 64 2d 70 61 | 73 73 77 64 2d 6d 61 70 | read-pa|sswd-map|
|000007b0| 20 31 32 37 20 62 6f 75 | 6e 64 70 20 6d 65 74 61 | 127 bou|ndp meta|
|000007c0| 2d 70 72 65 66 69 78 2d | 63 68 61 72 20 69 6e 74 |-prefix-|char int|
|000007d0| 2d 63 68 61 72 20 64 65 | 66 69 6e 65 2d 6b 65 79 |-char de|fine-key|
|000007e0| 20 73 65 6c 66 2d 69 6e | 73 65 72 74 2d 63 6f 6d | self-in|sert-com|
|000007f0| 6d 61 6e 64 20 22 07 22 | 20 6b 65 79 62 6f 61 72 |mand "."| keyboar|
|00000800| 64 2d 71 75 69 74 20 22 | 08 22 20 64 65 6c 65 74 |d-quit "|." delet|
|00000810| 65 2d 62 61 63 6b 77 61 | 72 64 2d 63 68 61 72 20 |e-backwa|rd-char |
|00000820| 22 0d 22 20 65 78 69 74 | 2d 6d 69 6e 69 62 75 66 |"." exit|-minibuf|
|00000830| 66 65 72 20 22 5c 6e 22 | 20 22 15 22 20 70 61 73 |fer "\n"| "." pas|
|00000840| 73 77 64 2d 65 72 61 73 | 65 2d 62 75 66 66 65 72 |swd-eras|e-buffer|
|00000850| 20 22 11 22 20 71 75 6f | 74 65 64 2d 69 6e 73 65 | "." quo|ted-inse|
|00000860| 72 74 20 22 7f 22 20 22 | ee 22 20 70 61 73 73 77 |rt "." "|." passw|
|00000870| 64 2d 6e 65 78 74 2d 68 | 69 73 74 6f 72 79 2d 65 |d-next-h|istory-e|
|00000880| 6c 65 6d 65 6e 74 20 22 | f0 22 20 70 61 73 73 77 |lement "|." passw|
|00000890| 64 2d 70 72 65 76 69 6f | 75 73 2d 68 69 73 74 6f |d-previo|us-histo|
|000008a0| 72 79 2d 65 6c 65 6d 65 | 6e 74 5d 20 35 29 20 28 |ry-eleme|nt] 5) (|
|000008b0| 23 24 20 2e 20 31 31 35 | 38 29 29 0a 28 62 79 74 |#$ . 115|8)).(byt|
|000008c0| 65 2d 63 6f 64 65 20 22 | c0 c1 21 ac 82 c2 11 c1 |e-code "|..!.....|
|000008d0| 0b 42 13 c0 c4 21 ac 82 | c5 14 c4 0b 42 13 c2 87 |.B...!..|....B...|
|000008e0| 22 20 5b 62 6f 75 6e 64 | 70 20 70 61 73 73 77 64 |" [bound|p passwd|
|000008f0| 2d 68 69 73 74 6f 72 79 | 20 6e 69 6c 20 63 75 72 |-history| nil cur|
|00000900| 72 65 6e 74 2d 6c 6f 61 | 64 2d 6c 69 73 74 20 70 |rent-loa|d-list p|
|00000910| 61 73 73 77 64 2d 68 69 | 73 74 6f 72 79 2d 70 6f |asswd-hi|story-po|
|00000920| 73 6e 20 30 5d 20 32 29 | 0a 23 40 32 34 31 37 20 |sn 0] 2)|.#@2417 |
|00000930| 50 72 6f 6d 70 74 73 20 | 66 6f 72 20 61 20 70 61 |Prompts |for a pa|
|00000940| 73 73 77 6f 72 64 20 69 | 6e 20 74 68 65 20 6d 69 |ssword i|n the mi|
|00000950| 6e 69 62 75 66 66 65 72 | 2c 20 61 6e 64 20 72 65 |nibuffer|, and re|
|00000960| 74 75 72 6e 73 20 69 74 | 20 61 73 20 61 20 73 74 |turns it| as a st|
|00000970| 72 69 6e 67 2e 0a 49 66 | 20 50 52 4f 4d 50 54 20 |ring..If| PROMPT |
|00000980| 6d 61 79 20 62 65 20 61 | 20 70 72 6f 6d 70 74 20 |may be a| prompt |
|00000990| 73 74 72 69 6e 67 20 6f | 72 20 61 6e 20 61 6c 69 |string o|r an ali|
|000009a0| 73 74 20 6f 66 20 65 6c | 65 6d 65 6e 74 73 20 0a |st of el|ements .|
|000009b0| 27 28 70 72 6f 6d 70 74 | 20 2e 20 64 65 66 61 75 |'(prompt| . defau|
|000009c0| 6c 74 29 2e 0a 49 66 20 | 6f 70 74 69 6f 6e 61 6c |lt)..If |optional|
|000009d0| 20 61 72 67 20 43 4f 4e | 46 49 52 4d 20 69 73 20 | arg CON|FIRM is |
|000009e0| 74 72 75 65 2c 20 74 68 | 65 6e 20 61 73 6b 20 74 |true, th|en ask t|
|000009f0| 68 65 20 75 73 65 72 20 | 74 6f 20 74 79 70 65 20 |he user |to type |
|00000a00| 74 68 65 20 70 61 73 73 | 77 6f 72 64 0a 61 67 61 |the pass|word.aga|
|00000a10| 69 6e 20 74 6f 20 63 6f | 6e 66 69 72 6d 20 74 68 |in to co|nfirm th|
|00000a20| 61 74 20 74 68 65 79 20 | 74 79 70 65 64 20 69 74 |at they |typed it|
|00000a30| 20 63 6f 72 72 65 63 74 | 6c 79 2e 0a 49 66 20 6f | correct|ly..If o|
|00000a40| 70 74 69 6f 6e 61 6c 20 | 61 72 67 20 44 45 46 41 |ptional |arg DEFA|
|00000a50| 55 4c 54 20 69 73 20 70 | 72 6f 76 69 64 65 64 2c |ULT is p|rovided,|
|00000a60| 20 74 68 65 6e 20 69 74 | 20 69 73 20 61 20 73 74 | then it| is a st|
|00000a70| 72 69 6e 67 20 74 6f 20 | 69 6e 73 65 72 74 20 61 |ring to |insert a|
|00000a80| 73 0a 74 68 65 20 64 65 | 66 61 75 6c 74 20 63 68 |s.the de|fault ch|
|00000a90| 6f 69 63 65 20 28 69 74 | 20 69 73 20 6e 6f 74 2c |oice (it| is not,|
|00000aa0| 20 6f 66 20 63 6f 75 72 | 73 65 2c 20 64 69 73 70 | of cour|se, disp|
|00000ab0| 6c 61 79 65 64 2e 29 0a | 0a 49 66 20 72 75 6e 6e |layed.).|.If runn|
|00000ac0| 69 6e 67 20 75 6e 64 65 | 72 20 58 2c 20 74 68 65 |ing unde|r X, the|
|00000ad0| 20 6b 65 79 62 6f 61 72 | 64 20 77 69 6c 6c 20 62 | keyboar|d will b|
|00000ae0| 65 20 67 72 61 62 62 65 | 64 20 28 77 69 74 68 20 |e grabbe|d (with |
|00000af0| 58 47 72 61 62 4b 65 79 | 62 6f 61 72 64 28 29 29 |XGrabKey|board())|
|00000b00| 0a 74 6f 20 72 65 64 75 | 63 65 20 74 68 65 20 70 |.to redu|ce the p|
|00000b10| 6f 73 73 69 62 69 6c 69 | 74 79 20 74 68 61 74 20 |ossibili|ty that |
|00000b20| 65 61 76 65 73 64 72 6f | 70 70 69 6e 67 20 69 73 |eavesdro|pping is|
|00000b30| 20 6f 63 63 75 72 69 6e | 67 2e 0a 0a 57 68 65 6e | occurin|g...When|
|00000b40| 20 72 65 61 64 69 6e 67 | 20 61 20 70 61 73 73 77 | reading| a passw|
|00000b50| 6f 72 64 2c 20 61 6c 6c | 20 6b 65 79 73 20 73 65 |ord, all| keys se|
|00000b60| 6c 66 2d 69 6e 73 65 72 | 74 2c 20 65 78 63 65 70 |lf-inser|t, excep|
|00000b70| 74 20 66 6f 72 3a 0a 5c | 3c 72 65 61 64 2d 70 61 |t for:.\|<read-pa|
|00000b80| 73 73 77 64 2d 6d 61 70 | 3e 0a 09 5c 5b 72 65 61 |sswd-map|>..\[rea|
|00000b90| 64 2d 70 61 73 73 77 64 | 2d 65 72 61 73 65 2d 6c |d-passwd|-erase-l|
|00000ba0| 69 6e 65 5d 09 45 72 61 | 73 65 20 74 68 65 20 65 |ine].Era|se the e|
|00000bb0| 6e 74 69 72 65 20 6c 69 | 6e 65 2e 0a 09 5c 5b 71 |ntire li|ne...\[q|
|00000bc0| 75 6f 74 65 64 2d 69 6e | 73 65 72 74 5d 09 49 6e |uoted-in|sert].In|
|00000bd0| 73 65 72 74 20 74 68 65 | 20 6e 65 78 74 20 63 68 |sert the| next ch|
|00000be0| 61 72 61 63 74 65 72 20 | 6c 69 74 65 72 61 6c 6c |aracter |literall|
|00000bf0| 79 2e 0a 09 5c 5b 64 65 | 6c 65 74 65 2d 62 61 63 |y...\[de|lete-bac|
|00000c00| 6b 77 61 72 64 2d 63 68 | 61 72 5d 09 44 65 6c 65 |kward-ch|ar].Dele|
|00000c10| 74 65 20 74 68 65 20 70 | 72 65 76 69 6f 75 73 20 |te the p|revious |
|00000c20| 63 68 61 72 61 63 74 65 | 72 2e 0a 09 5c 5b 65 78 |characte|r...\[ex|
|00000c30| 69 74 2d 6d 69 6e 69 62 | 75 66 66 65 72 5d 09 41 |it-minib|uffer].A|
|00000c40| 63 63 65 70 74 20 77 68 | 61 74 20 79 6f 75 20 68 |ccept wh|at you h|
|00000c50| 61 76 65 20 74 79 70 65 | 64 2e 0a 09 5c 5b 6b 65 |ave type|d...\[ke|
|00000c60| 79 62 6f 61 72 64 2d 71 | 75 69 74 5d 09 41 62 6f |yboard-q|uit].Abo|
|00000c70| 72 74 20 74 68 65 20 63 | 6f 6d 6d 61 6e 64 2e 0a |rt the c|ommand..|
|00000c80| 0a 54 68 65 20 72 65 74 | 75 72 6e 65 64 20 76 61 |.The ret|urned va|
|00000c90| 6c 75 65 20 69 73 20 61 | 6c 77 61 79 73 20 61 20 |lue is a|lways a |
|00000ca0| 6e 65 77 6c 79 2d 63 72 | 65 61 74 65 64 20 73 74 |newly-cr|eated st|
|00000cb0| 72 69 6e 67 2e 20 20 4e | 6f 20 61 64 64 69 74 69 |ring. N|o additi|
|00000cc0| 6f 6e 61 6c 20 63 6f 70 | 69 65 73 0a 6f 66 20 74 |onal cop|ies.of t|
|00000cd0| 68 65 20 70 61 73 73 77 | 6f 72 64 20 72 65 6d 61 |he passw|ord rema|
|00000ce0| 69 6e 20 61 66 74 65 72 | 20 74 68 69 73 20 66 75 |in after| this fu|
|00000cf0| 6e 63 74 69 6f 6e 20 68 | 61 73 20 72 65 74 75 72 |nction h|as retur|
|00000d00| 6e 65 64 2e 0a 0a 4e 4f | 54 45 3a 20 75 6e 6c 65 |ned...NO|TE: unle|
|00000d10| 73 73 20 67 72 65 61 74 | 20 63 61 72 65 20 69 73 |ss great| care is|
|00000d20| 20 74 61 6b 65 6e 2c 20 | 74 68 65 20 74 79 70 65 | taken, |the type|
|00000d30| 64 20 70 61 73 73 77 6f | 72 64 20 77 69 6c 6c 20 |d passwo|rd will |
|00000d40| 65 78 69 73 74 20 69 6e | 20 70 6c 61 69 6e 74 65 |exist in| plainte|
|00000d50| 78 74 0a 66 6f 72 6d 20 | 69 6e 20 74 68 65 20 72 |xt.form |in the r|
|00000d60| 75 6e 6e 69 6e 67 20 69 | 6d 61 67 65 20 66 6f 72 |unning i|mage for|
|00000d70| 20 61 6e 20 61 72 62 69 | 74 72 61 72 69 6c 79 20 | an arbi|trarily |
|00000d80| 6c 6f 6e 67 20 74 69 6d | 65 2e 20 20 50 72 69 76 |long tim|e. Priv|
|00000d90| 65 6c 65 67 65 64 20 75 | 73 65 72 73 20 6d 61 79 |eleged u|sers may|
|00000da0| 0a 62 65 20 61 62 6c 65 | 20 74 6f 20 65 78 74 72 |.be able| to extr|
|00000db0| 61 63 74 20 69 74 20 66 | 72 6f 6d 20 6d 65 6d 6f |act it f|rom memo|
|00000dc0| 72 79 2e 20 20 49 66 20 | 65 6d 61 63 73 20 63 72 |ry. If |emacs cr|
|00000dd0| 61 73 68 65 73 2c 20 69 | 74 20 6d 61 79 20 61 70 |ashes, i|t may ap|
|00000de0| 70 65 61 72 20 69 6e 20 | 74 68 65 0a 72 65 73 75 |pear in |the.resu|
|00000df0| 6c 74 61 6e 74 20 63 6f | 72 65 20 66 69 6c 65 2e |ltant co|re file.|
|00000e00| 0a 0a 53 6f 6d 65 20 73 | 74 65 70 73 20 79 6f 75 |..Some s|teps you|
|00000e10| 20 63 61 6e 20 74 61 6b | 65 20 74 6f 20 70 72 65 | can tak|e to pre|
|00000e20| 76 65 6e 74 20 74 68 65 | 20 70 61 73 73 77 6f 72 |vent the| passwor|
|00000e30| 64 20 66 72 6f 6d 20 62 | 65 69 6e 67 20 63 6f 70 |d from b|eing cop|
|00000e40| 69 65 64 20 61 72 6f 75 | 6e 64 3a 0a 0a 20 2d 20 |ied arou|nd:.. - |
|00000e50| 61 73 20 73 6f 6f 6e 20 | 61 73 20 79 6f 75 20 61 |as soon |as you a|
|00000e60| 72 65 20 64 6f 6e 65 20 | 77 69 74 68 20 74 68 65 |re done |with the|
|00000e70| 20 72 65 74 75 72 6e 65 | 64 20 73 74 72 69 6e 67 | returne|d string|
|00000e80| 2c 20 64 65 73 74 72 6f | 79 20 69 74 20 77 69 74 |, destro|y it wit|
|00000e90| 68 0a 20 20 20 28 66 69 | 6c 6c 61 72 72 61 79 20 |h. (fi|llarray |
|00000ea0| 73 74 72 69 6e 67 20 30 | 29 2e 20 20 54 68 65 20 |string 0|). The |
|00000eb0| 73 61 6d 65 20 67 6f 65 | 73 20 66 6f 72 20 61 6e |same goe|s for an|
|00000ec0| 79 20 64 65 66 61 75 6c | 74 20 70 61 73 73 77 6f |y defaul|t passwo|
|00000ed0| 72 64 73 0a 20 20 20 6f | 72 20 70 61 73 73 77 6f |rds. o|r passwo|
|00000ee0| 72 64 20 68 69 73 74 6f | 72 69 65 73 2e 0a 0a 20 |rd histo|ries... |
|00000ef0| 2d 20 64 6f 20 6e 6f 74 | 20 63 6f 70 79 20 74 68 |- do not| copy th|
|00000f00| 65 20 73 74 72 69 6e 67 | 2c 20 61 73 20 77 69 74 |e string|, as wit|
|00000f10| 68 20 63 6f 6e 63 61 74 | 20 6f 72 20 73 75 62 73 |h concat| or subs|
|00000f20| 74 72 69 6e 67 20 2d 20 | 69 66 20 79 6f 75 20 64 |tring - |if you d|
|00000f30| 6f 2c 20 62 65 0a 20 20 | 20 73 75 72 65 20 74 6f |o, be. | sure to|
|00000f40| 20 6b 65 65 70 20 74 72 | 61 63 6b 20 6f 66 20 61 | keep tr|ack of a|
|00000f50| 6e 64 20 64 65 73 74 72 | 6f 79 20 61 6c 6c 20 63 |nd destr|oy all c|
|00000f60| 6f 70 69 65 73 2e 0a 0a | 20 2d 20 64 6f 20 6e 6f |opies...| - do no|
|00000f70| 74 20 69 6e 73 65 72 74 | 20 74 68 65 20 70 61 73 |t insert| the pas|
|00000f80| 73 77 6f 72 64 20 69 6e | 74 6f 20 61 20 62 75 66 |sword in|to a buf|
|00000f90| 66 65 72 20 2d 20 69 66 | 20 79 6f 75 20 64 6f 2c |fer - if| you do,|
|00000fa0| 20 62 65 20 73 75 72 65 | 20 74 6f 20 0a 20 20 20 | be sure| to . |
|00000fb0| 6f 76 65 72 77 72 69 74 | 65 20 74 68 65 20 62 75 |overwrit|e the bu|
|00000fc0| 66 66 65 72 20 74 65 78 | 74 20 62 65 66 6f 72 65 |ffer tex|t before|
|00000fd0| 20 6b 69 6c 6c 69 6e 67 | 20 69 74 2c 20 61 73 20 | killing| it, as |
|00000fe0| 77 69 74 68 20 74 68 65 | 20 66 75 6e 63 74 69 6f |with the| functio|
|00000ff0| 6e 73 20 0a 20 20 20 60 | 70 61 73 73 77 64 2d 65 |ns . `|passwd-e|
|00001000| 72 61 73 65 2d 62 75 66 | 66 65 72 27 20 6f 72 20 |rase-buf|fer' or |
|00001010| 60 70 61 73 73 77 64 2d | 6b 69 6c 6c 2d 62 75 66 |`passwd-|kill-buf|
|00001020| 66 65 72 27 2e 20 20 4e | 6f 74 65 20 74 68 61 74 |fer'. N|ote that|
|00001030| 20 64 65 6c 65 74 69 6e | 67 0a 20 20 20 74 68 65 | deletin|g. the|
|00001040| 20 74 65 78 74 20 66 72 | 6f 6d 20 74 68 65 20 62 | text fr|om the b|
|00001050| 75 66 66 65 72 20 64 6f | 65 73 20 4e 4f 54 20 6e |uffer do|es NOT n|
|00001060| 65 63 65 73 73 61 72 69 | 6c 79 20 72 65 6d 6f 76 |ecessari|ly remov|
|00001070| 65 20 74 68 65 20 74 65 | 78 74 20 66 72 6f 6d 0a |e the te|xt from.|
|00001080| 20 20 20 6d 65 6d 6f 72 | 79 2e 0a 0a 20 2d 20 62 | memor|y... - b|
|00001090| 65 20 63 61 72 65 66 75 | 6c 20 6f 66 20 74 68 65 |e carefu|l of the|
|000010a0| 20 75 6e 64 6f 20 68 69 | 73 74 6f 72 79 20 2d 20 | undo hi|story - |
|000010b0| 69 66 20 79 6f 75 20 69 | 6e 73 65 72 74 20 74 68 |if you i|nsert th|
|000010c0| 65 20 70 61 73 73 77 6f | 72 64 20 69 6e 74 6f 20 |e passwo|rd into |
|000010d0| 61 20 0a 20 20 20 62 75 | 66 66 65 72 20 77 68 69 |a . bu|ffer whi|
|000010e0| 63 68 20 68 61 73 20 75 | 6e 64 6f 20 72 65 63 6f |ch has u|ndo reco|
|000010f0| 72 64 69 6e 67 20 74 75 | 72 6e 65 64 20 6f 6e 2c |rding tu|rned on,|
|00001100| 20 74 68 65 20 70 61 73 | 73 77 6f 72 64 20 77 69 | the pas|sword wi|
|00001110| 6c 6c 20 62 65 20 0a 20 | 20 20 63 6f 70 69 65 64 |ll be . | copied|
|00001120| 20 6f 6e 74 6f 20 74 68 | 65 20 75 6e 64 6f 20 6c | onto th|e undo l|
|00001130| 69 73 74 2c 20 61 6e 64 | 20 74 68 75 73 20 72 65 |ist, and| thus re|
|00001140| 63 6f 76 65 72 61 62 6c | 65 2e 0a 0a 20 2d 20 64 |coverabl|e... - d|
|00001150| 6f 20 6e 6f 74 20 70 61 | 73 73 20 69 74 20 61 73 |o not pa|ss it as|
|00001160| 20 61 6e 20 61 72 67 75 | 6d 65 6e 74 20 74 6f 20 | an argu|ment to |
|00001170| 61 20 73 68 65 6c 6c 20 | 63 6f 6d 6d 61 6e 64 20 |a shell |command |
|00001180| 2d 20 61 6e 79 6f 6e 65 | 20 77 69 6c 6c 20 62 65 |- anyone| will be|
|00001190| 0a 20 20 20 61 62 6c 65 | 20 74 6f 20 73 65 65 20 |. able| to see |
|000011a0| 69 74 20 69 66 20 74 68 | 65 79 20 72 75 6e 20 60 |it if th|ey run `|
|000011b0| 70 73 27 20 61 74 20 74 | 68 65 20 72 69 67 68 74 |ps' at t|he right|
|000011c0| 20 74 69 6d 65 2e 0a 0a | 4e 6f 74 65 20 74 68 61 | time...|Note tha|
|000011d0| 74 20 74 68 65 20 70 61 | 73 73 77 6f 72 64 20 77 |t the pa|ssword w|
|000011e0| 69 6c 6c 20 62 65 20 74 | 65 6d 70 6f 72 61 72 69 |ill be t|emporari|
|000011f0| 6c 79 20 72 65 63 6f 76 | 65 72 61 62 6c 65 20 77 |ly recov|erable w|
|00001200| 69 74 68 20 74 68 65 20 | 60 76 69 65 77 2d 6c 6f |ith the |`view-lo|
|00001210| 73 73 61 67 65 27 0a 63 | 6f 6d 6d 61 6e 64 2e 20 |ssage'.c|ommand. |
|00001220| 20 54 68 69 73 20 64 61 | 74 61 20 77 69 6c 6c 20 | This da|ta will |
|00001230| 6e 6f 74 20 62 65 20 6f | 76 65 72 77 72 69 74 74 |not be o|verwritt|
|00001240| 65 6e 20 75 6e 74 69 6c | 20 61 6e 6f 74 68 65 72 |en until| another|
|00001250| 20 68 75 6e 64 72 65 64 | 20 6f 72 20 73 6f 20 0a | hundred| or so .|
|00001260| 63 68 61 72 61 63 74 65 | 72 73 20 61 72 65 20 74 |characte|rs are t|
|00001270| 79 70 65 64 2e 20 20 54 | 68 65 72 65 27 73 20 6e |yped. T|here's n|
|00001280| 6f 74 20 63 75 72 72 65 | 6e 74 6c 79 20 61 20 77 |ot curre|ntly a w|
|00001290| 61 79 20 61 72 6f 75 6e | 64 20 74 68 69 73 2e 1f |ay aroun|d this..|
|000012a0| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 72 65 61 64 |.(defali|as 'read|
|000012b0| 2d 70 61 73 73 77 64 20 | 23 5b 28 70 72 6f 6d 70 |-passwd |#[(promp|
|000012c0| 74 20 26 6f 70 74 69 6f | 6e 61 6c 20 63 6f 6e 66 |t &optio|nal conf|
|000012d0| 69 72 6d 20 64 65 66 61 | 75 6c 74 29 20 22 8a c0 |irm defa|ult) "..|
|000012e0| c1 21 c2 c3 1c 1d 1e 06 | 0e 07 3c ab 88 0e 07 89 |.!......|..<.....|
|000012f0| 14 40 41 16 08 0e 06 71 | 88 c9 0e 06 21 88 ca 0e |.@A....q|....!...|
|00001300| 0b 21 88 cc 8e cd 20 ab | 83 ce 20 88 cf 0e 06 0e |.!.... .|.. .....|
|00001310| 07 c3 0e 08 24 88 0e 06 | 71 88 0e 10 ac 84 d1 20 |....$...|q...... |
|00001320| aa c1 c3 89 1e 12 1e 13 | 0e 13 ac b4 0e 06 71 88 |........|......q.|
|00001330| d1 20 16 12 cf 0e 06 0e | 07 d4 23 88 d5 0e 12 0e |. ......|..#.....|
|00001340| 06 5c 22 ab 86 d6 89 16 | 13 aa 60 d7 0e 12 c2 5c |.\".....|..`....\|
|00001350| 22 88 c3 16 12 d8 20 88 | cf 0e 06 0e 07 d9 23 88 |"..... .|......#.|
|00001360| aa 48 0e 12 2a 2d 87 22 | 20 5b 67 65 74 2d 62 75 |.H..*-."| [get-bu|
|00001370| 66 66 65 72 2d 63 72 65 | 61 74 65 20 22 20 2a 70 |ffer-cre|ate " *p|
|00001380| 61 73 73 77 6f 72 64 2a | 22 20 30 20 6e 69 6c 20 |assword*|" 0 nil |
|00001390| 70 61 73 73 77 64 2d 68 | 69 73 74 6f 72 79 20 70 |passwd-h|istory p|
|000013a0| 61 73 73 77 64 2d 68 69 | 73 74 6f 72 79 2d 70 6f |asswd-hi|story-po|
|000013b0| 73 6e 20 69 6e 70 75 74 | 20 70 72 6f 6d 70 74 20 |sn input| prompt |
|000013c0| 64 65 66 61 75 6c 74 20 | 62 75 66 66 65 72 2d 64 |default |buffer-d|
|000013d0| 69 73 61 62 6c 65 2d 75 | 6e 64 6f 20 75 73 65 2d |isable-u|ndo use-|
|000013e0| 6c 6f 63 61 6c 2d 6d 61 | 70 20 72 65 61 64 2d 70 |local-ma|p read-p|
|000013f0| 61 73 73 77 64 2d 6d 61 | 70 20 28 28 62 79 74 65 |asswd-ma|p ((byte|
|00001400| 2d 63 6f 64 65 20 22 c0 | 20 88 c1 20 88 c2 0b 21 |-code ".| .. ...!|
|00001410| 88 c4 c5 21 87 22 20 5b | 70 61 73 73 77 64 2d 75 |...!." [|passwd-u|
|00001420| 6e 67 72 61 62 2d 6b 65 | 79 62 6f 61 72 64 20 70 |ngrab-ke|yboard p|
|00001430| 61 73 73 77 64 2d 69 6e | 73 65 63 75 72 65 2d 64 |asswd-in|secure-d|
|00001440| 69 73 70 6c 61 79 20 70 | 61 73 73 77 64 2d 6b 69 |isplay p|asswd-ki|
|00001450| 6c 6c 2d 62 75 66 66 65 | 72 20 69 6e 70 75 74 20 |ll-buffe|r input |
|00001460| 6d 65 73 73 61 67 65 20 | 22 22 5d 20 32 29 29 20 |message |""] 2)) |
|00001470| 70 61 73 73 77 64 2d 67 | 72 61 62 2d 6b 65 79 62 |passwd-g|rab-keyb|
|00001480| 6f 61 72 64 20 70 61 73 | 73 77 64 2d 73 65 63 75 |oard pas|swd-secu|
|00001490| 72 65 2d 64 69 73 70 6c | 61 79 20 72 65 61 64 2d |re-displ|ay read-|
|000014a0| 70 61 73 73 77 64 2d 31 | 20 63 6f 6e 66 69 72 6d |passwd-1| confirm|
|000014b0| 20 62 75 66 66 65 72 2d | 73 74 72 69 6e 67 20 70 | buffer-|string p|
|000014c0| 61 73 73 77 64 20 6f 6b | 20 22 5b 52 65 74 79 70 |asswd ok| "[Retyp|
|000014d0| 65 20 74 6f 20 63 6f 6e | 66 69 72 6d 5d 22 20 70 |e to con|firm]" p|
|000014e0| 61 73 73 77 64 2d 63 6f | 6d 70 61 72 65 2d 73 74 |asswd-co|mpare-st|
|000014f0| 72 69 6e 67 2d 74 6f 2d | 62 75 66 66 65 72 20 74 |ring-to-|buffer t|
|00001500| 20 66 69 6c 6c 61 72 72 | 61 79 20 62 65 65 70 20 | fillarr|ay beep |
|00001510| 22 5b 4d 69 73 6d 61 74 | 63 68 2e 20 53 74 61 72 |"[Mismat|ch. Star|
|00001520| 74 20 6f 76 65 72 5d 22 | 5d 20 36 20 28 23 24 20 |t over]"|] 6 (#$ |
|00001530| 2e 20 32 33 35 32 29 5d | 29 0a 28 64 65 66 61 6c |. 2352)]|).(defal|
|00001540| 69 61 73 20 27 72 65 61 | 64 2d 70 61 73 73 77 64 |ias 'rea|d-passwd|
|00001550| 2d 31 20 23 5b 28 62 75 | 66 66 65 72 20 70 72 6f |-1 #[(bu|ffer pro|
|00001560| 6d 70 74 20 26 6f 70 74 | 69 6f 6e 61 6c 20 70 72 |mpt &opt|ional pr|
|00001570| 6f 6d 70 74 32 20 64 65 | 66 61 75 6c 74 29 20 22 |ompt2 de|fault) "|
|00001580| 08 71 88 c1 20 88 5c 6e | ab 83 5c 6e 63 88 c3 c4 |.q.. .\n|..\nc...|
|00001590| 8d 87 22 20 5b 62 75 66 | 66 65 72 20 70 61 73 73 |.." [buf|fer pass|
|000015a0| 77 64 2d 65 72 61 73 65 | 2d 62 75 66 66 65 72 20 |wd-erase|-buffer |
|000015b0| 64 65 66 61 75 6c 74 20 | 65 78 69 74 20 28 62 79 |default |exit (by|
|000015c0| 74 65 2d 63 6f 64 65 20 | 22 08 71 88 c1 1a c3 1c |te-code |".q.....|
|000015d0| c5 1e 06 c7 0e 08 3c ab | 88 0e 09 0e 5c 6e 38 40 |......<.|....\n8@|
|000015e0| aa 82 0e 08 0e 0b 0e 0c | ad 86 cd ce 20 0e 0c 5c |........|.... ..\|
|000015f0| 22 51 21 1e 0f d0 0e 0f | 21 1e 11 c1 16 0b 08 71 |"Q!.....|!......q|
|00001600| 88 d2 d3 21 ab 90 0e 0f | 89 47 53 48 16 14 d3 0e |...!....|.GSH....|
|00001610| 14 21 16 15 aa 88 0e 0f | 89 47 53 48 16 15 0e 11 |.!......|.GSH....|
|00001620| 16 16 d7 d8 d9 8f 88 2d | aa 21 22 20 5b 62 75 66 |.......-|.!" [buf|
|00001630| 66 65 72 20 6e 69 6c 20 | 6d 69 6e 69 62 75 66 66 |fer nil |minibuff|
|00001640| 65 72 2d 63 6f 6d 70 6c | 65 74 69 6f 6e 2d 74 61 |er-compl|etion-ta|
|00001650| 62 6c 65 20 74 20 63 75 | 72 73 6f 72 2d 69 6e 2d |ble t cu|rsor-in-|
|00001660| 65 63 68 6f 2d 61 72 65 | 61 20 30 20 65 63 68 6f |echo-are|a 0 echo|
|00001670| 2d 6b 65 79 73 74 72 6f | 6b 65 73 20 70 61 73 73 |-keystro|kes pass|
|00001680| 77 64 2d 72 65 61 64 2d | 6b 65 79 2d 73 65 71 75 |wd-read-|key-sequ|
|00001690| 65 6e 63 65 20 70 72 6f | 6d 70 74 20 70 61 73 73 |ence pro|mpt pass|
|000016a0| 77 64 2d 68 69 73 74 6f | 72 79 2d 70 6f 73 6e 20 |wd-histo|ry-posn |
|000016b0| 70 61 73 73 77 64 2d 68 | 69 73 74 6f 72 79 20 70 |passwd-h|istory p|
|000016c0| 72 6f 6d 70 74 32 20 70 | 61 73 73 77 64 2d 65 63 |rompt2 p|asswd-ec|
|000016d0| 68 6f 20 6d 61 6b 65 2d | 73 74 72 69 6e 67 20 62 |ho make-|string b|
|000016e0| 75 66 66 65 72 2d 73 69 | 7a 65 20 6b 65 79 20 6b |uffer-si|ze key k|
|000016f0| 65 79 2d 62 69 6e 64 69 | 6e 67 20 62 69 6e 64 69 |ey-bindi|ng bindi|
|00001700| 6e 67 20 66 62 6f 75 6e | 64 70 20 65 76 65 6e 74 |ng fboun|dp event|
|00001710| 2d 74 6f 2d 63 68 61 72 | 61 63 74 65 72 20 6c 61 |-to-char|acter la|
|00001720| 73 74 2d 63 6f 6d 6d 61 | 6e 64 2d 65 76 65 6e 74 |st-comma|nd-event|
|00001730| 20 6c 61 73 74 2d 63 6f | 6d 6d 61 6e 64 2d 63 68 | last-co|mmand-ch|
|00001740| 61 72 20 74 68 69 73 2d | 63 6f 6d 6d 61 6e 64 20 |ar this-|command |
|00001750| 63 20 28 63 6f 6d 6d 61 | 6e 64 2d 65 78 65 63 75 |c (comma|nd-execu|
|00001760| 74 65 20 62 69 6e 64 69 | 6e 67 29 20 28 28 65 72 |te bindi|ng) ((er|
|00001770| 72 6f 72 20 28 62 79 74 | 65 2d 63 6f 64 65 20 22 |ror (byt|e-code "|
|00001780| c0 20 88 c1 c2 21 ab 87 | c2 0b c4 5c 22 88 aa 96 |. ...!..|...\"...|
|00001790| c5 0b a2 c6 4e ae 81 c7 | 0b a3 ad 81 c8 c9 ca 0b |....N...|........|
|000017a0| a3 cb 23 51 21 88 cc cd | 21 87 22 20 5b 62 65 65 |..#Q!...|!." [bee|
|000017b0| 70 20 66 62 6f 75 6e 64 | 70 20 64 69 73 70 6c 61 |p fbound|p displa|
|000017c0| 79 2d 65 72 72 6f 72 20 | 63 20 74 20 6d 65 73 73 |y-error |c t mess|
|000017d0| 61 67 65 20 65 72 72 6f | 72 2d 6d 65 73 73 61 67 |age erro|r-messag|
|000017e0| 65 20 22 3f 3f 3f 22 20 | 22 3a 20 22 20 6d 61 70 |e "???" |": " map|
|000017f0| 63 6f 6e 63 61 74 20 23 | 5b 28 78 29 20 22 c0 c1 |concat #|[(x) "..|
|00001800| 5c 6e 5c 22 87 22 20 5b | 66 6f 72 6d 61 74 20 22 |\n\"." [|format "|
|00001810| 25 73 22 20 78 5d 20 33 | 5d 20 22 2c 20 22 20 73 |%s" x] 3|] ", " s|
|00001820| 69 74 2d 66 6f 72 20 32 | 5d 20 37 29 29 29 5d 20 |it-for 2|] 7)))] |
|00001830| 36 29 5d 20 32 5d 29 0a | 28 64 65 66 61 6c 69 61 |6)] 2]).|(defalia|
|00001840| 73 20 27 70 61 73 73 77 | 64 2d 70 72 65 76 69 6f |s 'passw|d-previo|
|00001850| 75 73 2d 68 69 73 74 6f | 72 79 2d 65 6c 65 6d 65 |us-histo|ry-eleme|
|00001860| 6e 74 20 23 5b 28 6e 29 | 20 22 08 ac 84 c1 c2 21 |nt #[(n)| ".....!|
|00001870| 88 08 47 1b 0c 0d 5c 5c | 0b a6 89 15 c6 57 ab 84 |..G...\\|.....W..|
|00001880| 0d 0b 5c 5c 15 29 70 1e | 07 c8 8e c9 71 88 ca 20 |..\\.)p.|....q.. |
|00001890| 88 0d 08 38 41 63 2a 87 | 22 20 5b 70 61 73 73 77 |...8Ac*.|" [passw|
|000018a0| 64 2d 68 69 73 74 6f 72 | 79 20 65 72 72 6f 72 20 |d-histor|y error |
|000018b0| 22 50 61 73 73 77 6f 72 | 64 20 68 69 73 74 6f 72 |"Passwor|d histor|
|000018c0| 79 20 69 73 20 65 6d 70 | 74 79 2e 22 20 6c 20 6e |y is emp|ty." l n|
|000018d0| 20 70 61 73 73 77 64 2d | 68 69 73 74 6f 72 79 2d | passwd-|history-|
|000018e0| 70 6f 73 6e 20 30 20 6f | 62 75 66 66 20 28 28 73 |posn 0 o|buff ((s|
|000018f0| 65 74 2d 62 75 66 66 65 | 72 20 6f 62 75 66 66 29 |et-buffe|r obuff)|
|00001900| 29 20 22 20 2a 70 61 73 | 73 77 6f 72 64 2a 22 20 |) " *pas|sword*" |
|00001910| 70 61 73 73 77 64 2d 65 | 72 61 73 65 2d 62 75 66 |passwd-e|rase-buf|
|00001920| 66 65 72 5d 20 33 20 6e | 69 6c 20 22 70 22 5d 29 |fer] 3 n|il "p"])|
|00001930| 0a 28 64 65 66 61 6c 69 | 61 73 20 27 70 61 73 73 |.(defali|as 'pass|
|00001940| 77 64 2d 6e 65 78 74 2d | 68 69 73 74 6f 72 79 2d |wd-next-|history-|
|00001950| 65 6c 65 6d 65 6e 74 20 | 23 5b 28 6e 29 20 22 c0 |element |#[(n) ".|
|00001960| 09 5b 21 87 22 20 5b 70 | 61 73 73 77 64 2d 70 72 |.[!." [p|asswd-pr|
|00001970| 65 76 69 6f 75 73 2d 68 | 69 73 74 6f 72 79 2d 65 |evious-h|istory-e|
|00001980| 6c 65 6d 65 6e 74 20 6e | 5d 20 32 20 6e 69 6c 20 |lement n|] 2 nil |
|00001990| 22 70 22 5d 29 0a 28 64 | 65 66 61 6c 69 61 73 20 |"p"]).(d|efalias |
|000019a0| 27 70 61 73 73 77 64 2d | 65 72 61 73 65 2d 62 75 |'passwd-|erase-bu|
|000019b0| 66 66 65 72 20 23 5b 6e | 69 6c 20 22 7e 88 c0 20 |ffer #[n|il "~.. |
|000019c0| c1 5f 1a c3 20 88 5c 6e | c4 56 ab 89 c5 63 88 5c |._.. .\n|.V...c.\|
|000019d0| 6e 53 89 12 aa 73 c3 20 | 29 87 22 20 5b 62 75 66 |nS...s. |)." [buf|
|000019e0| 66 65 72 2d 73 69 7a 65 | 20 33 20 73 20 65 72 61 |fer-size| 3 s era|
|000019f0| 73 65 2d 62 75 66 66 65 | 72 20 30 20 3f 5c 5e 40 |se-buffe|r 0 ?\^@|
|00001a00| 5d 20 33 20 6e 69 6c 20 | 6e 69 6c 5d 29 0a 28 64 |] 3 nil |nil]).(d|
|00001a10| 65 66 61 6c 69 61 73 20 | 27 70 61 73 73 77 64 2d |efalias |'passwd-|
|00001a20| 6b 69 6c 6c 2d 62 75 66 | 66 65 72 20 23 5b 28 62 |kill-buf|fer #[(b|
|00001a30| 75 66 66 65 72 29 20 22 | 8a 08 71 88 c1 08 21 88 |uffer) "|..q...!.|
|00001a40| c2 20 88 c3 c4 21 88 29 | c5 08 21 87 22 20 5b 62 |. ...!.)|..!." [b|
|00001a50| 75 66 66 65 72 20 62 75 | 66 66 65 72 2d 64 69 73 |uffer bu|ffer-dis|
|00001a60| 61 62 6c 65 2d 75 6e 64 | 6f 20 70 61 73 73 77 64 |able-und|o passwd|
|00001a70| 2d 65 72 61 73 65 2d 62 | 75 66 66 65 72 20 73 65 |-erase-b|uffer se|
|00001a80| 74 2d 62 75 66 66 65 72 | 2d 6d 6f 64 69 66 69 65 |t-buffer|-modifie|
|00001a90| 64 2d 70 20 6e 69 6c 20 | 6b 69 6c 6c 2d 62 75 66 |d-p nil |kill-buf|
|00001aa0| 66 65 72 5d 20 32 5d 29 | 0a 28 64 65 66 61 6c 69 |fer] 2])|.(defali|
|00001ab0| 61 73 20 27 70 61 73 73 | 77 64 2d 63 6f 6d 70 61 |as 'pass|wd-compa|
|00001ac0| 72 65 2d 73 74 72 69 6e | 67 2d 74 6f 2d 62 75 66 |re-strin|g-to-buf|
|00001ad0| 66 65 72 20 23 5b 28 73 | 74 72 69 6e 67 20 62 75 |fer #[(s|tring bu|
|00001ae0| 66 66 65 72 29 20 22 8a | 08 71 88 65 62 88 09 47 |ffer) ".|.q.eb..G|
|00001af0| c2 1b 89 1c 64 65 5a 55 | ad 9c 6d ac 94 67 09 0b |....deZU|..m..g..|
|00001b00| 48 55 ac 85 64 62 88 aa | 71 0b 54 13 c5 75 88 aa |HU..db..|q.T..u..|
|00001b10| 69 60 0b 65 5c 5c 55 2b | 87 22 20 5b 62 75 66 66 |i`.e\\U+|." [buff|
|00001b20| 65 72 20 73 74 72 69 6e | 67 20 30 20 69 20 4c 20 |er strin|g 0 i L |
|00001b30| 6e 69 6c 5d 20 34 5d 29 | 0a 28 62 79 74 65 2d 63 |nil] 4])|.(byte-c|
|00001b40| 6f 64 65 20 22 c0 c1 21 | ac 82 c2 11 c1 0b 42 13 |ode "..!|......B.|
|00001b50| c2 87 22 20 5b 62 6f 75 | 6e 64 70 20 70 61 73 73 |.." [bou|ndp pass|
|00001b60| 77 64 2d 66 61 63 65 2d | 64 61 74 61 20 6e 69 6c |wd-face-|data nil|
|00001b70| 20 63 75 72 72 65 6e 74 | 2d 6c 6f 61 64 2d 6c 69 | current|-load-li|
|00001b80| 73 74 5d 20 32 29 0a 28 | 64 65 66 61 6c 69 61 73 |st] 2).(|defalias|
|00001b90| 20 27 70 61 73 73 77 64 | 2d 73 65 63 75 72 65 2d | 'passwd|-secure-|
|00001ba0| 64 69 73 70 6c 61 79 20 | 23 5b 6e 69 6c 20 22 08 |display |#[nil ".|
|00001bb0| ab b6 c1 c2 21 ab b1 c3 | c4 c5 c6 c7 20 5c 22 5c |....!...|.... \"\|
|00001bc0| 22 89 16 08 89 1e 09 ab | a0 c2 0e 09 40 40 ca 0e |".......|....@@..|
|00001bd0| 09 40 38 5c 22 88 cb 0e | 09 40 40 0e 09 40 41 40 |.@8\"...|.@@..@A@|
|00001be0| 5c 22 88 0e 09 41 89 16 | 09 ac 60 29 c4 87 22 20 |\"...A..|..`).." |
|00001bf0| 5b 70 61 73 73 77 64 2d | 69 6e 76 65 72 74 2d 66 |[passwd-|invert-f|
|00001c00| 72 61 6d 65 2d 77 68 65 | 6e 2d 6b 65 79 62 6f 61 |rame-whe|n-keyboa|
|00001c10| 72 64 2d 67 72 61 62 62 | 65 64 20 66 62 6f 75 6e |rd-grabb|ed fboun|
|00001c20| 64 70 20 73 65 74 2d 66 | 61 63 65 2d 66 6f 72 65 |dp set-f|ace-fore|
|00001c30| 67 72 6f 75 6e 64 20 64 | 65 6c 71 20 6e 69 6c 20 |ground d|elq nil |
|00001c40| 6d 61 70 63 61 72 20 23 | 5b 28 66 61 63 65 29 20 |mapcar #|[(face) |
|00001c50| 22 c0 09 21 c2 09 21 1b | 89 1c ac 83 0b ad 93 c5 |"..!..!.|........|
|00001c60| c6 21 ab 8a 09 c6 0c 21 | c6 0b 21 45 aa 84 09 0c |.!.....!|..!E....|
|00001c70| 0b 45 2a 87 22 20 5b 66 | 61 63 65 2d 66 6f 72 65 |.E*." [f|ace-fore|
|00001c80| 67 72 6f 75 6e 64 20 66 | 61 63 65 20 66 61 63 65 |ground f|ace face|
|00001c90| 2d 62 61 63 6b 67 72 6f | 75 6e 64 20 62 67 20 66 |-backgro|und bg f|
|00001ca0| 67 20 66 62 6f 75 6e 64 | 70 20 63 6f 6c 6f 72 2d |g fbound|p color-|
|00001cb0| 6e 61 6d 65 5d 20 35 5d | 20 66 61 63 65 2d 6c 69 |name] 5]| face-li|
|00001cc0| 73 74 20 70 61 73 73 77 | 64 2d 66 61 63 65 2d 64 |st passw|d-face-d|
|00001cd0| 61 74 61 20 72 65 73 74 | 20 32 20 73 65 74 2d 66 |ata rest| 2 set-f|
|00001ce0| 61 63 65 2d 62 61 63 6b | 67 72 6f 75 6e 64 5d 20 |ace-back|ground] |
|00001cf0| 36 5d 29 0a 28 64 65 66 | 61 6c 69 61 73 20 27 70 |6]).(def|alias 'p|
|00001d00| 61 73 73 77 64 2d 69 6e | 73 65 63 75 72 65 2d 64 |asswd-in|secure-d|
|00001d10| 69 73 70 6c 61 79 20 23 | 5b 6e 69 6c 20 22 08 ad |isplay #|[nil "..|
|00001d20| 9e 09 ab 9a c2 09 40 40 | 09 40 41 40 5c 22 88 c3 |......@@|.@A@\"..|
|00001d30| 09 40 40 c4 09 40 38 5c | 22 88 09 41 89 11 ac 66 |.@@..@8\|"..A...f|
|00001d40| c5 87 22 20 5b 70 61 73 | 73 77 64 2d 69 6e 76 65 |.." [pas|swd-inve|
|00001d50| 72 74 2d 66 72 61 6d 65 | 2d 77 68 65 6e 2d 6b 65 |rt-frame|-when-ke|
|00001d60| 79 62 6f 61 72 64 2d 67 | 72 61 62 62 65 64 20 70 |yboard-g|rabbed p|
|00001d70| 61 73 73 77 64 2d 66 61 | 63 65 2d 64 61 74 61 20 |asswd-fa|ce-data |
|00001d80| 73 65 74 2d 66 61 63 65 | 2d 66 6f 72 65 67 72 6f |set-face|-foregro|
|00001d90| 75 6e 64 20 73 65 74 2d | 66 61 63 65 2d 62 61 63 |und set-|face-bac|
|00001da0| 6b 67 72 6f 75 6e 64 20 | 32 20 6e 69 6c 5d 20 35 |kground |2 nil] 5|
|00001db0| 5d 29 0a 28 64 65 66 61 | 6c 69 61 73 20 27 70 61 |]).(defa|lias 'pa|
|00001dc0| 73 73 77 64 2d 67 72 61 | 62 2d 6b 65 79 62 6f 61 |sswd-gra|b-keyboa|
|00001dd0| 72 64 20 23 5b 6e 69 6c | 20 22 c0 c1 21 ab 93 c0 |rd #[nil| "..!...|
|00001de0| c2 21 ab 86 c2 c3 20 21 | aa 84 c4 c3 20 21 c5 61 |.!.... !|.... !.a|
|00001df0| ac 82 c6 87 c1 20 ab 82 | c7 87 c8 c9 21 88 ca cb |..... ..|....!...|
|00001e00| 21 88 c1 20 ab 86 c8 cc | 21 88 c7 87 cd 20 88 c8 |!.. ....|!.... ..|
|00001e10| ce 21 88 ca cf 21 88 c6 | 87 22 20 5b 66 62 6f 75 |.!...!..|." [fbou|
|00001e20| 6e 64 70 20 78 2d 67 72 | 61 62 2d 6b 65 79 62 6f |ndp x-gr|ab-keybo|
|00001e30| 61 72 64 20 66 72 61 6d | 65 2d 74 79 70 65 20 73 |ard fram|e-type s|
|00001e40| 65 6c 65 63 74 65 64 2d | 66 72 61 6d 65 20 66 72 |elected-|frame fr|
|00001e50| 61 6d 65 2d 6c 69 76 65 | 2d 70 20 78 20 6e 69 6c |ame-live|-p x nil|
|00001e60| 20 74 20 6d 65 73 73 61 | 67 65 20 22 55 6e 61 62 | t messa|ge "Unab|
|00001e70| 6c 65 20 74 6f 20 67 72 | 61 62 20 6b 65 79 62 6f |le to gr|ab keybo|
|00001e80| 61 72 64 20 2d 20 77 61 | 69 74 69 6e 67 20 61 20 |ard - wa|iting a |
|00001e90| 73 65 63 6f 6e 64 2e 2e | 2e 22 20 73 6c 65 65 70 |second..|." sleep|
|00001ea0| 2d 66 6f 72 20 31 20 22 | 4b 65 79 62 6f 61 72 64 |-for 1 "|Keyboard|
|00001eb0| 20 67 72 61 62 62 65 64 | 20 6f 6e 20 73 65 63 6f | grabbed| on seco|
|00001ec0| 6e 64 20 74 72 79 2e 22 | 20 62 65 65 70 20 22 57 |nd try."| beep "W|
|00001ed0| 41 52 4e 49 4e 47 3a 20 | 6b 65 79 62 6f 61 72 64 |ARNING: |keyboard|
|00001ee0| 20 69 73 20 69 6e 73 65 | 63 75 72 65 20 28 75 6e | is inse|cure (un|
|00001ef0| 61 62 6c 65 20 74 6f 20 | 67 72 61 62 21 29 22 20 |able to |grab!)" |
|00001f00| 33 5d 20 32 5d 29 0a 28 | 64 65 66 61 6c 69 61 73 |3] 2]).(|defalias|
|00001f10| 20 27 70 61 73 73 77 64 | 2d 75 6e 67 72 61 62 2d | 'passwd|-ungrab-|
|00001f20| 6b 65 79 62 6f 61 72 64 | 20 23 5b 6e 69 6c 20 22 |keyboard| #[nil "|
|00001f30| c0 c1 21 ad 95 c0 c2 21 | ab 86 c2 c3 20 21 aa 84 |..!....!|.... !..|
|00001f40| c4 c3 20 21 c5 61 ad 82 | c1 20 87 22 20 5b 66 62 |.. !.a..|. ." [fb|
|00001f50| 6f 75 6e 64 70 20 78 2d | 75 6e 67 72 61 62 2d 6b |oundp x-|ungrab-k|
|00001f60| 65 79 62 6f 61 72 64 20 | 66 72 61 6d 65 2d 74 79 |eyboard |frame-ty|
|00001f70| 70 65 20 73 65 6c 65 63 | 74 65 64 2d 66 72 61 6d |pe selec|ted-fram|
|00001f80| 65 20 66 72 61 6d 65 2d | 6c 69 76 65 2d 70 20 78 |e frame-|live-p x|
|00001f90| 5d 20 32 5d 29 0a 28 62 | 79 74 65 2d 63 6f 64 65 |] 2]).(b|yte-code|
|00001fa0| 20 22 c0 c1 21 ac 84 c1 | c2 4d 88 c0 87 22 20 5b | "..!...|.M..." [|
|00001fb0| 66 62 6f 75 6e 64 70 20 | 62 75 66 66 65 72 2d 64 |fboundp |buffer-d|
|00001fc0| 69 73 61 62 6c 65 2d 75 | 6e 64 6f 20 62 75 66 66 |isable-u|ndo buff|
|00001fd0| 65 72 2d 66 6c 75 73 68 | 2d 75 6e 64 6f 5d 20 32 |er-flush|-undo] 2|
|00001fe0| 29 0a 28 64 65 66 61 6c | 69 61 73 20 27 70 61 73 |).(defal|ias 'pas|
|00001ff0| 73 77 64 2d 72 65 61 64 | 2d 6b 65 79 2d 73 65 71 |swd-read|-key-seq|
|00002000| 75 65 6e 63 65 20 23 5b | 28 70 72 6f 6d 70 74 29 |uence #[|(prompt)|
|00002010| 20 22 c0 c1 1a 1b 5c 6e | ab 87 c4 c5 5c 6e 21 21 | "....\n|....\n!!|
|00002020| ab 8f c6 0e 07 21 88 5c | 6e c8 c9 20 21 50 89 12 |.....!.\|n.. !P..|
|00002030| aa 68 c1 16 5c 6e 5c 6e | 2a 87 22 20 5b 74 20 6e |.h..\n\n|*." [t n|
|00002040| 69 6c 20 73 74 72 20 69 | 6e 68 69 62 69 74 2d 71 |il str i|nhibit-q|
|00002050| 75 69 74 20 6b 65 79 6d | 61 70 70 20 6b 65 79 2d |uit keym|app key-|
|00002060| 62 69 6e 64 69 6e 67 20 | 6d 65 73 73 61 67 65 20 |binding |message |
|00002070| 70 72 6f 6d 70 74 20 63 | 68 61 72 2d 74 6f 2d 73 |prompt c|har-to-s|
|00002080| 74 72 69 6e 67 20 72 65 | 61 64 2d 63 68 61 72 20 |tring re|ad-char |
|00002090| 71 75 69 74 2d 66 6c 61 | 67 5d 20 34 5d 29 0a 28 |quit-fla|g] 4]).(|
|000020a0| 62 79 74 65 2d 63 6f 64 | 65 20 22 c0 c1 5c 6e 5c |byte-cod|e "..\n\|
|000020b0| 22 ac 84 c3 c4 4d 88 c5 | c6 21 87 22 20 5b 73 74 |"....M..|.!." [st|
|000020c0| 72 69 6e 67 2d 6d 61 74 | 63 68 20 22 5e 31 38 22 |ring-mat|ch "^18"|
|000020d0| 20 65 6d 61 63 73 2d 76 | 65 72 73 69 6f 6e 20 70 | emacs-v|ersion p|
|000020e0| 61 73 73 77 64 2d 72 65 | 61 64 2d 6b 65 79 2d 73 |asswd-re|ad-key-s|
|000020f0| 65 71 75 65 6e 63 65 20 | 72 65 61 64 2d 6b 65 79 |equence |read-key|
|00002100| 2d 73 65 71 75 65 6e 63 | 65 20 70 72 6f 76 69 64 |-sequenc|e provid|
|00002110| 65 20 70 61 73 73 77 64 | 5d 20 33 29 0a |e passwd|] 3). |
+--------+-------------------------+-------------------------+--------+--------+